home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / auto2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  1.7 KB  |  47 lines

  1. //---------------------------------------------------------------------------
  2. // Borland C++Builder
  3. // Copyright (c) 1987, 1998 Borland International Inc.  All Rights Reserved.
  4. //---------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #ifndef auto2H
  7. #define auto2H
  8. //---------------------------------------------------------------------------
  9. #include "srvr_TLB.h"
  10.  
  11. // The following define is utilized by the IDEs Code Manager to ensure that
  12. // your controls Library Identifier is kept up-to-date.
  13. // NOTE: Do not remove or modify this macro.
  14. //
  15. #define LIBID_EditServer LIBID_srvr
  16.  
  17. class ATL_NO_VTABLE TEditServerImpl:
  18.   AUTOOBJECT_IMPL(TEditServerImpl, EditServer, IEditServer)
  19. {
  20. public:
  21.  
  22. // The COM MAP entries declares the interfaces your object exposes (through
  23. // QueryInterface). CComRootObjectEx::InternalQueryInterface only returns
  24. // pointers for interfaces in the COM map. VCL controls exposed as OCXes
  25. // have a minimum set of interfaces defined by the
  26. // VCL_CONTROL_COM_INTERFACE_ENTRIES macro. Add other interfaces supported
  27. // by your object with additional COM_INTERFACE_ENTRY[_xxx] macros.
  28. //
  29. BEGIN_COM_MAP(TEditServerImpl)
  30.   AUTOOBJECT_COM_INTERFACE_ENTRIES(IEditServer)
  31. END_COM_MAP()
  32.  
  33. // The following macro declares a 'static UpdateRegistry(..)' which is
  34. // used by ATL to register this object.
  35. //
  36. DECLARE_TYPED_COMSERVER_REGISTRY("srvr.EditServer")
  37.  
  38. protected: 
  39.   STDMETHOD(Clear());
  40.   STDMETHOD(get_EditNum(int* Value));
  41.   STDMETHOD(get_EditStr(BSTR* Value));
  42.   STDMETHOD(set_EditNum(int Value));
  43.   STDMETHOD(set_EditStr(BSTR Value));
  44.   STDMETHOD(SetThreeStr(BSTR s1, BSTR s2, BSTR s3, BSTR* result));
  45. };
  46. #endif
  47.